package net.lookyou.boot.demo.config.redis;

import net.lookyou.boot.demo.entity.SysUser;
import org.springframework.session.Session;

import java.util.List;
import java.util.Map;

public interface SessionService {
    /**
     *
     * @param account
     * @return
     */
    boolean hasLogin(String account);
    /**
     * 根據账号查找当前session会话
     * @param account 账号
     * @return
     */
    Map<String, ? extends Session> loadByAccount(String account);
    /**
     * 销毁当前session会话
     * @param account
     */
    void destroySession(String account);

}